package com.gzsolar.common.service;

import com.gzsolar.common.model.BiUser;
import com.jfinal.plugin.activerecord.Page;

public class BiUserService {
	private static final BiUser dao = new BiUser();
	
	public Page<BiUser> paginate(int pageNumber, int pageSize) {
		return dao.paginate(pageNumber, pageSize, "select *", "from bi_user order by id asc");
	}
	
	public BiUser findById(int id){
		return dao.findById(id);
	}
	
	public void deleteById(int id){
		dao.deleteById(id);
	}

}
